/*
 * @Author: yangfan 1437446666@qq.com
 * @Date: 2023-02-27 15:32:44
 * @LastEditors: yangfan 1437446666@qq.com
 * @LastEditTime: 2023-03-05 15:12:49
 * @FilePath: \s_2006A_shixun\src\api\loginPage.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { postHttp, getHttp } from '../utils/http'
import { GETHttp, POSTHttp } from '../utils/https'
//登录接口
export const Login = async (params) => {
  return await postHttp('/api/login', params)
}
//注册接口
export const Register = async (params) => {
  return await postHttp('/api/register', params)
}
//获取验证码
export const getCode = async (params) => {
  return await getHttp('/api/get_code', params)
}
// 网络登录接口
export const HeadLogin = async (params) => {
  return await POSTHttp('/api/auth/login', params)
}
// 网络注册接口
export const HeadRegister = async (params) => {
  return await postHttp('/api/user/register', params)
}

//身份认证
export const Authentication = async (params) => {
  return await POSTHttp('/api/auth/admin', params)
}
